// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Security;

public sealed partial class HasPrivilegesResponse : ElasticsearchResponse
{
	[JsonInclude, JsonPropertyName("application")]
	public IReadOnlyDictionary<string, IReadOnlyDictionary<string, IReadOnlyDictionary<string, bool>>> Application { get; init; }
	[JsonInclude, JsonPropertyName("cluster")]
	public IReadOnlyDictionary<string, bool> Cluster { get; init; }
	[JsonInclude, JsonPropertyName("has_all_requested")]
	public bool HasAllRequested { get; init; }
	[JsonInclude, JsonPropertyName("index")]
	[ReadOnlyIndexNameDictionaryConverter(typeof(IReadOnlyDictionary<string, bool>))]
	public IReadOnlyDictionary<Elastic.Clients.Elasticsearch.Serverless.IndexName, IReadOnlyDictionary<string, bool>> Index { get; init; }
	[JsonInclude, JsonPropertyName("username")]
	public string Username { get; init; }
}